import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {SettingUrl} from "./public/setting/setting_url";

const routes: Routes = [
  {path: 'home', loadChildren: './routes/home/home.module#HomeModule'}, //编辑器
  // 路由指向找不到时，指向这里
  {path: '**', redirectTo: SettingUrl.ROUTERLINK.basic.home}];

@NgModule({
  imports: [RouterModule.forRoot(routes,{useHash: true})],
  exports: [RouterModule]
})
export class AppRoutingModule {
}
